
import { resolve } from "url";
export default class TestService {
  constructor() {

  }
  getData() {
    return new Promise((resolve,reject)=>{
      setTimeout(() => {
        const indexData = {
          name: 'hello awilix',
          version:'1.0.0.1',
          user: {
            name: 'Wilix',
            email: 'cfddream@gmail.com'
          }
        };
        resolve(indexData);
      }, 1000);
    })
  }
  getByID(id){
    const data =  {
      name: 'hello awilix',
      version:'1.0.0.1',
      user: {
        name: 'Wilix',
        email: 'cfddream@gmail.com'
      }
    };
    return data;
  }
};